package com.lin.forum.exception;

import com.lin.forum.common.Result;

public class ApplicationException extends RuntimeException {
    protected Result errorResult;
    public ApplicationException(Result errorResult) {
        super(errorResult.getMessage());
        this.errorResult=errorResult;
    }
    public ApplicationException(String message) {
        super(message);
    }
    public ApplicationException(String message, Throwable cause) {
        super(message,cause);
    }
    public ApplicationException( Throwable cause) {
        super(cause);
    }
    public Result getErrorResult() {
        return errorResult;
    }
}
